package com.letoken.platform.repo.mall.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商铺基本信息表
 * </p>
 *
 * @author 作者
 * @since 2023-04-20
 */
@Getter
@Setter
@TableName("app_mall_info")
@ApiModel(value = "AppMallInfo对象", description = "商铺基本信息表")
public class AppMallInfo extends Model<AppMallInfo> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("店铺编号")
    @TableField("number")
    private String number;


    @ApiModelProperty("店铺名称")
    @TableField("mall_name")
    private String mallName;

    @ApiModelProperty("店铺地址")
    @TableField("mall_address")
    private String mallAddress;

    @ApiModelProperty("店铺详细地址")
    @TableField("mall_address_info")
    private String mallAddressInfo;

    @ApiModelProperty("店铺等级")
    @TableField("level")
    private Float level;


    @TableField("longitude")
    private BigDecimal longitude;

    @TableField("latitude")
    private BigDecimal latitude;


//    @ApiModelProperty("收款地址")
//    @TableField("collect_address")
//    private String collectAddress;

    @ApiModelProperty("关注数量")
    @TableField("followers")
    private Integer followers;

    @TableField("logo")
    private String logo;

    @ApiModelProperty("一级分类")
    @TableField("one_category")
    private Integer oneCategory;

    @ApiModelProperty("二级分类")
    @TableField("two_category")
    private Integer twoCategory;

    @ApiModelProperty("电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("国际号")
    @TableField("areaCode")
    private Integer areaCode;

    @ApiModelProperty("是否有营业执照0无 1有")
    @TableField("is_business")
    private Integer isBusiness;

    @ApiModelProperty("0.待审核 1.审核通过 2.审核拒绝")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("行业标签")
    @TableField("label")
    private String label;


    @ApiModelProperty("背景图片")
    @TableField("bg_image")
    private String bgImage;


    @ApiModelProperty("销量")
    @TableField("sales_volume")
    private Integer salesVolume;


    @ApiModelProperty("上架，下架")
    @TableField("publish_state")
    private Integer publishState;

    @ApiModelProperty("城市")
    @TableField("city")
    private String city;


    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("create_time")
    private LocalDateTime createTime;



    @ApiModelProperty("等级积分")
    @TableField("level_score")
    private Float levelScore;



    @ApiModelProperty("服务标签")
    @TableField("service_tag")
    private String serviceTag;


    @ApiModelProperty("公告")
    @TableField("notice")
    private String notice;


    @ApiModelProperty("营业时间")
    @TableField("business_hours")
    private String businessHours;


    @ApiModelProperty("电商名称")
    @TableField("ecommerce_name")
    private String ecommerceName;

    @ApiModelProperty("电商logo")
    @TableField("ecommerce_logo")
    private String ecommerceLogo;



    @ApiModelProperty("运费类型 1叠加 2较大值")
    @TableField("shipping_type")
    private Integer shippingType;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
